<template>
    <div class="pages">
        <!-- <Header :active="active" @change="change" /> -->
        <router-view />
    </div>
</template>
<script>
// import Header from "@/components/mall/Header.vue"
export default {
    components: {
        // Header
    },
    data() {
        return {
            active: 'buy',
            type: false,
            id: null
        }
    },
    methods: {
        change(value) {
            if (this.active === value) return;
            this.active = value;
            value = value == 'buy' ? 'mallBuy' : 'mallSell';
            this.$router.replace({
                name: value
            })
        },
        submit(item) {
            this.type = true;
            this.id = item.id;
        }
    }
}
</script>

<style scoped lang="scss">
.pages {
    flex: 1;
    overflow: hidden;
    background: #EDEDED;
}
</style>